# First install translate with pip in cmd pip install translate # Code from translate import Translator translator= Translator(from_lang="german",to_lang="spanish") translation = translator.translate("Guten Morgen") print(translation)